package com.qiaodata.datatrans.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.vcg.common.base.BaseServiceImpl;
import com.qiaodata.datatrans.model.TransRecord;
import com.qiaodata.datatrans.model.query.TransRecordExample;
import com.qiaodata.datatrans.dao.TransRecordDao;
import com.qiaodata.datatrans.service.TransRecordService;

@Service
public class TransRecordServiceImpl extends BaseServiceImpl<TransRecord,TransRecordExample,Integer> implements TransRecordService {

	@Autowired
	private TransRecordDao transRecordDao;

	@Override
	public void setDao() {
		this.baseDao = transRecordDao;
	}


	public Object insert(TransRecord transRecord) {
		if (transRecord==null) {
			return null;
		}
		return this.transRecordDao.insert(transRecord);
	}

}